package com.red.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户答题记录表
 * </p>
 *
 * @author author
 * @since 2025-03-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("answer_records")
@ApiModel(value="AnswerRecords对象", description="用户答题记录表")
public class AnswerRecords implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "记录唯一标识")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "答题用户ID")
    private Integer userId;

    @ApiModelProperty(value = "题目ID")
    private Integer questionId;

    @ApiModelProperty(value = "用户选择答案")
    private String userAnswer;

    @ApiModelProperty(value = "是否答对")
    private Boolean isCorrect;


}
